package com.tm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author huangp
 * @create 2023-04-14 17:53
 */
@Data
@TableName("setmeal_dish")
public class SetmealDishEntity extends CreateAllEntity{

    private Long id;// bigint(20) NOT NULL COMMENT '主键',
    @TableField("setmeal_id")
    private Long setmealId;// varchar(32) COLLATE utf8_bin NOT NULL COMMENT '套餐id ',
    @TableField("dish_id")
    private Long dishId;// varchar(32) COLLATE utf8_bin NOT NULL COMMENT '菜品id',
    private String name;// varchar(32) COLLATE utf8_bin DEFAULT NULL COMMENT '菜品名称 （冗余字段）',
    private BigDecimal price;// decimal(10,2) DEFAULT NULL COMMENT '菜品原价（冗余字段）',
    private Integer copies;// int(11) NOT NULL COMMENT '份数',
    private Integer sort;// int(11) NOT NULL DEFAULT '0' COMMENT '排序',
    @TableField("is_deleted")
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;// int(11) NOT NULL DEFAULT '0' COMMENT '是否删除',

}
